package com.chenglu.android.supermarket.mvp.model;





import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.index.bean.BannerBeanList;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.index.bean.PageListBean;
import com.chenglu.android.mine.bean.CollectBean;
import com.chenglu.android.restaurant.bean.RestaurantSearchBean;
import com.chenglu.android.supermarket.mvp.contract.SuperMarkerContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class SuperMarkerModel implements SuperMarkerContract.SuperMarkerModel {



    @Override
    public Observable<PageListBean> getCategoryList(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getPageList(map);
    }

    @Override
    public Observable<BannerBeanList> getBannerList(String shopsTypeId, String showType) {
        return RetrofitClientCL.getInstance().getApi().getBannerList(shopsTypeId, showType);
    }

    @Override
    public Observable<IndexRecomBean> getTabTitleData(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getIndexPage(map);
    }

    @Override
    public Observable<IndexRecomBean> getHotsellData(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getIndexPage(map);
    }

    @Override
    public Observable<RestaurantSearchBean> getSearchShop(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getSearchShop(map);
    }


}
